package com.runvp.common.util.enc.aes128gcm;

public class Test {

    public static void main(String[] args) {
        String myData = "{\"rs\":1,\"er\":0,\"yy\":\"2024\",\"mm\":\"05\",\"dd\":\"12\",\"hh\":\"23\",\"ii\":\"39\",\"ss\":\"06\",\"id\":999999,\"pn\":10}";
        String myKey = "BMrcujdO0XDjvOOa";
        String myIv = "98BPRR4Wve41";
        String encryptString = Aes128GcmUtils.getInstance().setMyKey(myKey).setMyIv(myIv).encrypt(myData);
//        String encryptString= "6BE3153AFC79025ACDF03CB38D988927BBF1DB4FCE387729CB19AB13FEC1367130C4C92F60B7EB4D565B1DDFC2559E";
        encryptString = "6BE3093DBA611A40CAF03CB48C9B9D32A0B98754C63B79279B08F00BF3DC69B40AB0DA189C017BE00EDB964CB0B438911C25CED2E5D8C77A1F3425B04B61277BCEF595A319CE95D1AFD2558FA85ED62D6D13A3352D7446BDE80AB5105DC03D71FBCAC804B127A538BD698EA8881ABA67BB4335887A1472A338AFAAF1F5D4A0BDC47A94";
        String decryptString = Aes128GcmUtils.getInstance().setMyKey(myKey).setMyIv(myIv).decrypt(encryptString);
        System.out.println("encryptString: " + encryptString);
        System.out.println("decryptString: " + decryptString);

    }

}
